<%@page import="com.sport.po.Manager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<title>资料管理</title>
</head>
<body>
<jsp:include page="/manager/header.jsp" flush="true"></jsp:include>
<jsp:include page="/manager/left.jsp" flush="true"></jsp:include>
	  <!--right-->
   <div class="centers_mr">
    <%Manager manager= (Manager)session.getAttribute("manager"); %>
    <h1 class="welcom_tm">欢迎您，尊敬的用户     <font><%=manager.getRealname() %> </font>！当前时间为 <label id="show">显示时间的位置</label></h1>
    <script type="text/javascript">
//获得当前时间,刻度为一千分一秒
var initializationTime=(new Date()).getTime();
function showLeftTime()
{
var now=new Date();
var year=now.getYear()+1900;
var month=now.getMonth();
var day=now.getDate();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
document.getElementById("show").innerHTML=""+year+"年"+month+"月"+day+"日 "+hours+":"+minutes+":"+seconds+"";
//一秒刷新一次显示时间
var timeID=setTimeout(showLeftTime,1000);
}
showLeftTime();
</script>
    <!--一条开始-->
        <div class="public_m1">
            <div class="public_m2">资料管理</div>
            <!--照片和内容-->    
            <div class="zp_nrm">
                <!--left-->
                
                <!--right-->
                <div class="zp_nrm_r">
                    <p><em>用户名：</em><i><%=manager.getRealname() %></i></p>
                    
                    <p><em>邮箱：</em><i><%=(manager.getEmail()==null || manager.getEmail().trim().equals(""))?"未设置":manager.getEmail() %></i><a href="#">立即设置</a></p>
                    <p><em>手机号：</em><i><%=(manager.getPhone()==null || manager.getPhone().trim().equals(""))?"未设置":manager.getPhone() %></i><a href="#">立即绑定</a></p>
                    <%String sex = manager.getSex(); %> --%>
                    <p><em>性别：</em>
                    <input type="radio" name="sex" class="sex_m" <%=(sex==null || !sex.trim().equals("男") || !sex.trim().equals("女"))?"checked=\"checked\"":"" %>>
                    <i>保密</i>
                    <input type="radio" name="sex" class="sex_m" <%=(sex==null)?"":(sex.trim().equals("男")?"checked=\"checked\"":"") %>>
                    <i>男</i>
                    <input type="radio" name="sex" class="sex_m" <%=(sex==null)?"":(sex.trim().equals("女")?"checked=\"checked\"":"") %>>
                    <i>女</i></p> 
                    
                   <a href="<%=path %>/manager/centerUpdate.jsp" class="public_m3">修改个人信息</a>
                   
                </div>
            </div>
        </div>
                                          
    </div> 
</body>
</html>